package tq.com.tqteacher.model;


import tq.com.tqcom.recyclerAdapter.declear.IRecyclerSection;

public class TQPublishSection extends IRecyclerSection {

    public TQPublishSection(){
        TQPublishItem item = new TQPublishItem();
        setFooterItem(item);
    }
    public void hideFooter(){
        setFooterItem(null);
    }

    public TQPublishItem getLastItem(){
        if(getFooterItem() != null){
            return (TQPublishItem) getItem(getiItemCount() - 2);
        }
        return (TQPublishItem) getItem(getiItemCount() - 1);
    }
}
